﻿@using QuestionsAnswers.UI.Models
@model Invitation

@{
    ViewBag.Title = "Confirm Accept";
}

<h2>Confirm Accept</h2>
<h3>Are you sure you want to Accept this?</h3>
<fieldset>
    <legend>Invitation</legend>

    <div class="display-label">Invited As</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MemberType)
    </div>

    
    <div class="display-label">Invited By</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Inviter.UserName)
    </div>
      <div class="display-label">Invited To</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Course.Name)
    </div>

</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Accept" /> |
        @Html.ActionLink("Back to List", "Index","Course")
    </p>
}
